package com.xhy.tool.service.impl;

import com.xhy.tool.annotation.After;
import com.xhy.tool.entity.User;
import com.xhy.tool.mapper.UserMapper;
import com.xhy.tool.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author B站-xhyOVO
 * @since 2022-06-04
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    @Lazy
    private UserService userService;

    @Override
    public Map<String, Object> test() {
        Map<String, Object> map = new HashMap<>();
        map.put("data",Arrays.asList("1","2"));
        map.put("userService",userService);
        return map;
    }
}
